import time

start = time.perf_counter()
xs=range(10000000)
# map函数
# list(map(lambda x: x*2, xs))
[x**2 for x in xs]
# l = []
# for i in xs:
#     l.append(i**2)
end = time.perf_counter()
print(end-start)